package cn.it.ygh.mapper;

import java.util.List;

import cn.it.ygh.pojo.Apply;
import cn.it.ygh.pojo.House;
import cn.it.ygh.pojo.Order;

public interface HouseApplyMapper {
	List<Order> getUnorderData(int pageStart,int pageSize,String agentAccount);   
	public int getUnorderTotal(String agentAccount);
									//找到订单表中的订单，待处理记录
	
	
	List<Apply> getUnapplyData(int pageStart,int pageSize,String agentAccount); 
	public int getUnapplyTotal(String agentAccount);		 
									//找到申请表  房屋代理表
	
	List<House> getAuditingData(int pageStart,int pageSize,String agentAccount);
	public int getAuditingTotal(String agentAccount);    //找到house表中‘否’ 的订单
	
	public void updateOrderList(Order order);
	public void updateApplyList(Apply apply);
	
	public House getHouseById(int houseId);
	
	public Apply getApplyById(int applyId);
	
	public void addOrder(Order order);
	public void AuditingHouse(House house);
	
	public Order getOrderById(int orderId);
	
	public void dealSuccess(int houseId);
}
